package d0309;

public class Person {
    protected String name;
    protected  int age;
    protected String sex;

    public Person(String name){
        this.name=name;
        System.out.println("Person的构造方法");
    }

    public void run(){
        System.out.println("跑步");
    }

    public static void main(String[] args) {
        Wife wife=new Wife();
//子类实例化后运行 默认先运行父类无参构造方法
    }
}
